<?php
/**
 * Feed model
 *
 * Utilizes the Data Mapper pattern to persist data. Represents a single 
 * feed entry.
 * 
 * @uses       Model_Entity_BaseBean
 * @package    FireFeed
 * @subpackage Model
 */
class Model_Entity_Feed extends Model_Entity_BaseBean
{
	protected $_name;
	protected $_url;
	protected $_description;
	protected $_lastSync;
	
	/**
	 * @var Model_Entity_News
	 */
	protected $_news;
	
	/**
	 * @var Model_Entity_Category
	 */
	protected $_category;
	
	/**
     * User who created this category
     * 
     * @var Model_Entity_User
     */
    protected $_createdBy;
    
    /**
     * Users that have this category
     * 
     * @var array of Model_Entity_User
     */
    protected $_owners;
	
    /**
     * Constructor
     * 
     * @param  array|null $options 
     * @return void
     */
    public function __construct(array $options = null)
    {
        parent::__construct($options);
    }
    
    public function setName($name)
    {
        $this->_name = $name;
    }
    
    public function getName()
    {
        return $this->_name;
    }
    
    public function setUrl($url)
    {
    	$this->_url = $url;
    }
    
    public function getUrl()
    {
    	return $this->_url;
    }
    
    public function setDescription($description)
    {
        $this->_description = $description;
    }
    
    public function getDescription()
    {
        return $this->_description;
    }
	
	public function setLastSync($lastSync) {
		$this->_lastSync = $lastSync;
	}

	public function getLastSync() {
		return $this->_lastSync;
	}

    public function setNews($news)
    {
        $this->_news = $news;
    }
    
    public function getNews()
    {
        return $this->_news;
    }
    
    public function setOwners($owners) {
        $this->_owners = $owners;
    }

    public function getOwners() {
        return $this->_owners;
    }

    public function setCreatedBy($createdBy) {
        $this->_createdBy = $createdBy;
    }

    public function getCreatedBy() {
        return $this->_createdBy;
    }

    public function setCategory($category) {
		$this->_category = $category;
	}

	public function getCategory() {
		return $this->_category;
	}
}